import request from '@/utils/request'

export function addRecord(data) {
  return request({
    url: '/juanbusiness/indent-evaluation/add',
    method: 'post',
    data
  })
}

export function findRecord(page, size,indentId) {
  return request({
    url: '/juanbusiness/indent-evaluation/findPage',
    method: 'get',
    params: { page: page, size: size,indentId: indentId}
  })
}

export function detailRecord(id) {
  return request({
    url: '/juanbusiness/indent-evaluation/get',
    method: 'get',
    params: {id: id}
  })
}

export function delRecord(id) {
  return request({
    url: '/juanbusiness/indent-evaluation/del',
    method: 'delete',
    params: {id: id}
  })
}

export function editRecord(data) {
    return request({
      url: '/juanbusiness/indent-evaluation/edit',
      method: 'put',
      data
    })
}

export function editSupportRecord(data) {
    return request({
      url: '/juanbusiness/indent-evaluation/editSupport',
      method: 'put',
      data
    })
}

